window.onload=windowInitialized;
var number=0;

function msg(){
	var name=["../resource/mao.jpg","../resource/qilin.jpg","../resource/pixiu.png"]
	canvas=document.getElementById('canvas');
	console.log(canvas.src)
	canvas.src=name[number];
	number=number+1;
	if(number>2){
		number=0;
	}
}

function windowInitialized(){
	var btn=document.getElementById('canvas');
	btn.addEventListener('click',msg,false);
}